package com.system.util;

import com.alibaba.fastjson.annotation.JSONField;

public class PieChartData {
	@JSONField(ordinal = 1)
	private String code;
	@JSONField(ordinal = 2)
	private int pest;
	@JSONField(ordinal = 3)
	private int veter;
	@JSONField(ordinal = 4)
	private int metal;
	@JSONField(ordinal = 5)
	private int toxin;
	@JSONField(ordinal = 6)
	private int addi;
	@JSONField(ordinal = 7)
	private int wrap;
	
	public PieChartData() {
		super();
	}

	public PieChartData(String code) {
		super();
		this.code = code;
	}

	public PieChartData(int pest, int veter, int metal, int toxin, int addi, int wrap) {
		super();
		this.pest = pest;
		this.veter = veter;
		this.metal = metal;
		this.toxin = toxin;
		this.addi = addi;
		this.wrap = wrap;
	}

	public PieChartData(String code, int pest, int veter, int metal, int toxin, int addi, int wrap) {
		super();
		this.code = code;
		this.pest = pest;
		this.veter = veter;
		this.metal = metal;
		this.toxin = toxin;
		this.addi = addi;
		this.wrap = wrap;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public int getPest() {
		return pest;
	}

	public void setPest(int pest) {
		this.pest = pest;
	}

	public int getVeter() {
		return veter;
	}

	public void setVeter(int veter) {
		this.veter = veter;
	}

	public int getMetal() {
		return metal;
	}

	public void setMetal(int metal) {
		this.metal = metal;
	}

	public int getToxin() {
		return toxin;
	}

	public void setToxin(int toxin) {
		this.toxin = toxin;
	}

	public int getAddi() {
		return addi;
	}

	public void setAddi(int addi) {
		this.addi = addi;
	}

	public int getWrap() {
		return wrap;
	}

	public void setWrap(int wrap) {
		this.wrap = wrap;
	}

	@Override
	public String toString() {
		return "PieChartData [code=" + code + ", pest=" + pest + ", veter=" + veter + ", metal=" + metal + ", toxin="
				+ toxin + ", addi=" + addi + ", wrap=" + wrap + "]";
	}
	
}
